/**
 * Copyright 2009 Sergio Bossa
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package com.googlecode.actorom.dsl;

import com.googlecode.actorom.Topology;
import com.googlecode.actorom.dsl.chain.messaging.MethodExecutionBuilder;
import net.jcip.annotations.ThreadSafe;

/**
 * This is the class to import for starting to use the Actorom Messaging DSL.<br/>
 * It is mostly used as a static import:
 * <br/><br/>
 * <code>import static com.googlecode.actorom.dsl.Messaging.*;</code>
 *
 * @author Sergio Bossa
 */
@ThreadSafe
public final class Messaging {

    /**
     * Set the {@link com.googlecode.actorom.Topology} which hosts
     * the actors you want to interact with.
     */
    public static MethodExecutionBuilder on(Topology topology) {
        return new MethodExecutionBuilder(topology);
    }
}
